﻿using System.Web.Mvc;
using Limestone;

namespace SampleSite.Areas.Limestone.Controllers
{
    public class TrashcanController : Controller
    {
        private readonly IPageProvider _pageProvider;
        private readonly ITrashcan _trashcan;

        public TrashcanController(IPageProvider pageProvider, ITrashcan trashcan)
        {
            _pageProvider = pageProvider;
            _trashcan = trashcan;
        }

        public ActionResult Index()
        {
            var trash = _trashcan.GetRootPageStubs();
            return View(trash);
        }
    }
}